package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: itcast_health
 * @create: 2019-10-21 17:52
 * @author: li he
 * @description:
 */
public interface SetMealDao {

    void add(Setmeal setmeal);

    void setAssociation(@Param("setMealId") Integer setMealId, @Param("checkGroupId") Integer checkGroupId);

    Page<Setmeal> findByCondition(String queryString);

    long findOrderCountById(int id);

    void delById(int id);

    void delAssociationById(int id);

    String findImgById(int id);

    Setmeal findById(int id);

    List<Integer> findCheckGroupIds(int id);

    void edit(Setmeal setmeal);

    List<Setmeal> findAll();

    Setmeal findSetMealDetailsById(Integer id);
}